
#ifndef AnimationH
#define AnimationH

#include "Constants.h"
#include "Sprite.h"


class Animation: public Sprite
{
public:
	int n_sprites;
	int time;
	int frameTime;
	SDL_Rect clipRect_animation;

	int frameSkip;
	int frameSkip_previous;

	Animation(string, int, int);
	virtual ~Animation() {}

	void update(int);
	void setFrame(int frame);
	void setFrameTime(int time);
	int getFrameTime();
};

#endif
